<?php
/**
 * Created by PhpStorm.
 * User: LiuJiaJun
 * Date: 2018/12/1
 * Time: 10:35
 */

use think\Route;

Route::resource('storage/preparations','storage/Preparations');
Route::resource('storage/bom','storage/Bom');
Route::resource('storage/storage','storage/Storage');
Route::resource('storage/seat','storage/Seat');
Route::resource('storage/materiel','storage/Materiel');
Route::resource('storage/container','storage/Container');
Route::resource('storage/purchase','storage/Purchase');
Route::resource('storage/reels','storage/Reels');
Route::resource('storage/input','storage/Input');
Route::resource('storage/output','storage/Output');
Route::resource('storage/inventory','storage/Inventory');
Route::resource('storage/car','storage/Car');
Route::resource('storage/client','storage/Client');
//注册GET请求，'访问地址'=>'控制器下的方法'
Route::get([
    'storage/preparations/testController'=>'storage/Preparations/testController',
    'storage/bom/stock'=>'storage/Bom/stock',
    'storage/container/seat_check'=>'storage/Container/checkSeat',
    'storage/container/container_check'=>'storage/Container/checkContainer',
    'storage/inventory/code_check'=>'storage/Inventory/checkCode',
    'storage/inventory/reels_check'=>'storage/Inventory/checkReels',
    'storage/inventory/seat_check'=>'storage/Inventory/checkSeat',
    'storage/output/status_check'=>'storage/Output/checkStatus',
    'storage/output/reels_check'=>'storage/Output/checkReels',
    'storage/car/bom_time'=>'storage/Car/getBomTime',
    'storage/car/car_norm'=>'storage/Car/getCarNorm',
    'storage/car/seat_code'=>'storage/Car/getSeatCode',
    'storage/car/reels_check'=>'storage/Car/checkReels',
    'storage/client/client_auth'=>'storage/Client/authClient',
    'storage/client/version_check'=>'storage/Client/checkVersion',
    'storage/client/history_version'=>'storage/Client/historyVersion',
    'storage/input/shelf_look'=>'storage/Input/lookingBindShelf',
    'storage/feed/check_simulation'=>'storage/Feed/CheckSimulation',
    'storage/feed/check_feed' => "storage/Feed/checkFeed",
    'storage/feed/refresh' => "storage/Feed/refresh",
    'storage/machine/get_reel_destination' => "storage/Machine/getDestination",
    'storage/machine/add_materiel_check' => 'storage/Machine/addMaterielCheck',
    'storage/smt_return/check_return' => 'storage/SmtReturn/checkReturn',
    'storage/machine/enter_add_materiel' => 'storage/machine/enterAddMateriel',
    'storage/storage/curr_storage_query'=>'storage/Storage/queryStorageOutput',
]);
//注册POST请求，'访问地址'=>'控制器下的方法'
Route::post([
    'storage/user/login'=>'storage/User/login',
    'storage/output/output_confirm'=>'storage/Output/confirmOutput',
    'storage/car/car_count'=>'storage/Car/getCarCount',
    'storage/car/seat_distribute'=>'storage/Car/distributeSeatCode',
    'storage/car/container_put'=>'storage/Car/putContainer',
    'storage/client/log_file_upload'=>'storage/Client/logFileUpload',
    'storage/car/cancel_put_seat'=>'storage/Car/cancelPutSeat',
    'storage/feed/update_simulation'=>'storage/Feed/updateSimulation',
    'storage/feed/move_materiel'=>'storage/Feed/moveMateriel',
    'storage/feed/change_process'=>'storage/Feed/changeProcess',
    'storage/feed/output_from_shelve'=>'storage/Feed/outputFromShelve',
    'storage/feed/mismatch_return'=>'storage/Feed/mismatchReturn',
    'storage/machine/add_materiel_output'=>'storage/Machine/addMaterielOutput',
    'storage/smt_return/unload' => 'storage/SmtReturn/unload',
    'storage/smt_return/smt_input' => 'storage/SmtReturn/smtInput',
    'storage/storage/curr_storage_delete'=>'storage/Storage/delStorageBom'
]);


//注册PUT请求，'访问地址'=>'控制器下的方法'
Route::put([
    'storage/storage/curr_storage_update'=>'storage/Storage/updateCurrStorage',
    'storage/user/logout'=>'storage/User/logout',
    'storage/purchase/reel_count_update'=>'storage/Purchase/updateReelCount',
    'storage/seat/seat_bind'=>'storage/Seat/bindSeat',
    'storage/seat/multi_seat_bind'=>'storage/Seat/bindMultiSeat',
    'storage/input/type_update'=>'storage/Input/updateType',
    'storage/input/cancel'=>'storage/Input/cancel',
    'storage/input/shelf_bind'=>'storage/Input/bindShelf',
    'storage/container/seat_bind'=>'storage/Container/bindSeat',
    'storage/inventory/reels_confirm'=>'storage/Inventory/confirmReels',
    'storage/output/materiel_revert'=>'storage/Output/revertMateriel',
    'storage/output/reels_output'=>'storage/Output/outputReels',
    'storage/car/seat_put'=>'storage/Car/putSeat',
    'storage/car/car_complete'=>'storage/Car/complete',
    'storage/materiel/type_modify'=>'storage/Materiel/modifyType',
    'storage/machine/put_machine' => 'storage/Machine/putMachine',
    'storage/machine/add_materiel'=>'storage/Machine/addMateriel',
]);

//注册DELETE请求，'访问地址'=>'控制器下的方法'
Route::delete([
    'storage/inventory/inventory_complete'=>'storage/Inventory/completeInventory',
    'storage/inventory/inventory_cancel'=>'storage/Inventory/cancelInventory',
    'storage/output/output_cancel'=>'storage/Output/cancelOutput',
    'storage/input/shelf_unbind'=>'storage/input/unbindShelf',
    'storage/machine/add_materiel_over'=>'storage/Machine/addMaterielOver'
]);